<header class="layout head padding-small">
	<a href="javascript:pageBack();" class="hBack float-left"></a>
	<h4 class="hTxt float-left text-center text-white">商品分类</h4>
	<a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<div class="bg-white  margin padding radius-big goods-list">
	<a href="index.php?act=brand"><h5>品牌加盟</h5></a>
</div>
<?php
if(!empty($output['goods_class']) && is_array($output['goods_class'])){
foreach($output['goods_class'] as $key=>$val){
?>
<div class="bg-white  margin padding radius-big goods-list">
	<h5>
		<?php echo $val['gc_name']?>
		<?php if(!empty($val['subClass']) && is_array($val['subClass'])){?>
			<i class="float-right icon-angle-up icon-angle-down"></i>
		<?php }?>
	</h5>
	<?php if(!empty($val['subClass']) && is_array($val['subClass'])){?>
        <hr>
		<p class="clearfix text-center text-small">
			<?php foreach($val['subClass'] as $k=>$v){?>
			<a href="index.php?act=search&cate_id=<?php echo $v['gc_id']?>" class="float-left goods_class_padding"><?php echo $v['gc_name']?></a>
			<?php }?>
		</p>
	<?php }?>
</div>
<?php }?>
<?php }?>
<script type="text/javascript">
	$('.goods-list h5').css('cursor','pointer');
</script>